<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加二手房</title>
    <link rel="stylesheet" href="/admin/layui/css/layui.css" media="all">
    <script src="/admin/layui/layui.js"></script>
</head>
<body>

<label style="padding-left:100px;line-height:100px;padding-bottom:60px;">添加租房类型</label>
<form class="layui-form" action="/admin/add_rentclassin" enctype="multipart/form-data" method="post">
    @csrf
    <div class="layui-form-item">
        <label class="layui-form-label">类型:</label>
        <div class="layui-input-inline">
            <input type="text" name="house_type" required lay-verify="required" placeholder="请输入租房类型" autocomplete="off" class="layui-input" value="">
    </div>
        <div class="layui-form-mid layui-word-aux">租房类型(确保准确无误)</div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">

            <input class="layui-btn" type="submit" value="添加"/>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>
